package com.annotation.demo03;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

// 自定义订单注解
@Target(value = {ElementType.METHOD, ElementType.TYPE})
@Retention(value = RetentionPolicy.RUNTIME)

public @interface OrderAnnotation {
    String name();
    // 声明默认值
    int age() default 1;
    int id();
    String[] schools();
}
